package com.hn658.base.message.account.entity;

import java.util.Date;
import java.util.Set;

import com.hn658.framework.shared.entity.BaseEntity;
import com.hn658.framework.shared.entity.IUser;

/**
 * 
 * 消息用户信息EO
 * @author ztjie
 * @date 2015-11-2 下午2:21:21
 * @since
 * @version
 */
public class AccountInfoEO extends BaseEntity implements IUser {

	private static final long serialVersionUID = 1L;
	/**
	 * 应用的APPID
	 */
	private String appId;
	
	/**
	 * 用户唯一标识
	 */
	private String accountId;
	
	/**
	 * 名称
	 */
	private String name;
	
	/**
	 * 头像地址
	 */
	private String portraitUri;
	
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 最后更新时间
	 */
	private Date lastUpdateTime;

	public String getAppId() {
		return appId;
	}

	public void setAppId(String appId) {
		this.appId = appId;
	}

	public String getAccountId() {
		return accountId;
	}

	public void setAccountId(String accountId) {
		this.accountId = accountId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPortraitUri() {
		return portraitUri;
	}

	public void setPortraitUri(String portraitUri) {
		this.portraitUri = portraitUri;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}
	
	@Override
	public String getLoginAccount() {
		return appId+"_"+name;
	}

}